function [nzij_pred, nzij_current, nzij_fwrd] = dynamic_g1_nz()
% Returns the coordinates of non-zero elements in the Jacobian, in column-major order, for each lead/lag (only for endogenous)
  nzij_pred = zeros(12, 2, 'int32');
  nzij_pred(1,1)=15; nzij_pred(1,2)=2;
  nzij_pred(2,1)=16; nzij_pred(2,2)=3;
  nzij_pred(3,1)=22; nzij_pred(3,2)=11;
  nzij_pred(4,1)=23; nzij_pred(4,2)=12;
  nzij_pred(5,1)=14; nzij_pred(5,2)=15;
  nzij_pred(6,1)=19; nzij_pred(6,2)=17;
  nzij_pred(7,1)=20; nzij_pred(7,2)=17;
  nzij_pred(8,1)=22; nzij_pred(8,2)=20;
  nzij_pred(9,1)=23; nzij_pred(9,2)=20;
  nzij_pred(10,1)=25; nzij_pred(10,2)=22;
  nzij_pred(11,1)=19; nzij_pred(11,2)=32;
  nzij_pred(12,1)=20; nzij_pred(12,2)=32;
  nzij_current = zeros(101, 2, 'int32');
  nzij_current(1,1)=24; nzij_current(1,2)=1;
  nzij_current(2,1)=15; nzij_current(2,2)=2;
  nzij_current(3,1)=17; nzij_current(3,2)=2;
  nzij_current(4,1)=24; nzij_current(4,2)=2;
  nzij_current(5,1)=16; nzij_current(5,2)=3;
  nzij_current(6,1)=18; nzij_current(6,2)=3;
  nzij_current(7,1)=24; nzij_current(7,2)=3;
  nzij_current(8,1)=36; nzij_current(8,2)=4;
  nzij_current(9,1)=31; nzij_current(9,2)=5;
  nzij_current(10,1)=32; nzij_current(10,2)=6;
  nzij_current(11,1)=34; nzij_current(11,2)=7;
  nzij_current(12,1)=36; nzij_current(12,2)=7;
  nzij_current(13,1)=35; nzij_current(13,2)=8;
  nzij_current(14,1)=36; nzij_current(14,2)=8;
  nzij_current(15,1)=1; nzij_current(15,2)=9;
  nzij_current(16,1)=13; nzij_current(16,2)=9;
  nzij_current(17,1)=17; nzij_current(17,2)=9;
  nzij_current(18,1)=2; nzij_current(18,2)=10;
  nzij_current(19,1)=13; nzij_current(19,2)=10;
  nzij_current(20,1)=18; nzij_current(20,2)=10;
  nzij_current(21,1)=1; nzij_current(21,2)=11;
  nzij_current(22,1)=3; nzij_current(22,2)=11;
  nzij_current(23,1)=6; nzij_current(23,2)=11;
  nzij_current(24,1)=12; nzij_current(24,2)=11;
  nzij_current(25,1)=22; nzij_current(25,2)=11;
  nzij_current(26,1)=34; nzij_current(26,2)=11;
  nzij_current(27,1)=2; nzij_current(27,2)=12;
  nzij_current(28,1)=4; nzij_current(28,2)=12;
  nzij_current(29,1)=7; nzij_current(29,2)=12;
  nzij_current(30,1)=12; nzij_current(30,2)=12;
  nzij_current(31,1)=23; nzij_current(31,2)=12;
  nzij_current(32,1)=35; nzij_current(32,2)=12;
  nzij_current(33,1)=3; nzij_current(33,2)=13;
  nzij_current(34,1)=10; nzij_current(34,2)=13;
  nzij_current(35,1)=11; nzij_current(35,2)=13;
  nzij_current(36,1)=14; nzij_current(36,2)=13;
  nzij_current(37,1)=4; nzij_current(37,2)=14;
  nzij_current(38,1)=10; nzij_current(38,2)=14;
  nzij_current(39,1)=11; nzij_current(39,2)=14;
  nzij_current(40,1)=14; nzij_current(40,2)=14;
  nzij_current(41,1)=25; nzij_current(41,2)=14;
  nzij_current(42,1)=1; nzij_current(42,2)=15;
  nzij_current(43,1)=2; nzij_current(43,2)=15;
  nzij_current(44,1)=3; nzij_current(44,2)=15;
  nzij_current(45,1)=4; nzij_current(45,2)=15;
  nzij_current(46,1)=14; nzij_current(46,2)=15;
  nzij_current(47,1)=26; nzij_current(47,2)=15;
  nzij_current(48,1)=34; nzij_current(48,2)=15;
  nzij_current(49,1)=35; nzij_current(49,2)=15;
  nzij_current(50,1)=12; nzij_current(50,2)=16;
  nzij_current(51,1)=13; nzij_current(51,2)=17;
  nzij_current(52,1)=19; nzij_current(52,2)=17;
  nzij_current(53,1)=20; nzij_current(53,2)=17;
  nzij_current(54,1)=27; nzij_current(54,2)=17;
  nzij_current(55,1)=30; nzij_current(55,2)=17;
  nzij_current(56,1)=11; nzij_current(56,2)=18;
  nzij_current(57,1)=5; nzij_current(57,2)=19;
  nzij_current(58,1)=9; nzij_current(58,2)=19;
  nzij_current(59,1)=28; nzij_current(59,2)=19;
  nzij_current(60,1)=33; nzij_current(60,2)=19;
  nzij_current(61,1)=1; nzij_current(61,2)=20;
  nzij_current(62,1)=2; nzij_current(62,2)=20;
  nzij_current(63,1)=3; nzij_current(63,2)=20;
  nzij_current(64,1)=4; nzij_current(64,2)=20;
  nzij_current(65,1)=9; nzij_current(65,2)=20;
  nzij_current(66,1)=22; nzij_current(66,2)=20;
  nzij_current(67,1)=23; nzij_current(67,2)=20;
  nzij_current(68,1)=27; nzij_current(68,2)=20;
  nzij_current(69,1)=29; nzij_current(69,2)=20;
  nzij_current(70,1)=34; nzij_current(70,2)=20;
  nzij_current(71,1)=35; nzij_current(71,2)=20;
  nzij_current(72,1)=26; nzij_current(72,2)=21;
  nzij_current(73,1)=25; nzij_current(73,2)=22;
  nzij_current(74,1)=26; nzij_current(74,2)=22;
  nzij_current(75,1)=27; nzij_current(75,2)=23;
  nzij_current(76,1)=28; nzij_current(76,2)=24;
  nzij_current(77,1)=29; nzij_current(77,2)=25;
  nzij_current(78,1)=30; nzij_current(78,2)=26;
  nzij_current(79,1)=31; nzij_current(79,2)=26;
  nzij_current(80,1)=32; nzij_current(80,2)=26;
  nzij_current(81,1)=5; nzij_current(81,2)=27;
  nzij_current(82,1)=10; nzij_current(82,2)=27;
  nzij_current(83,1)=22; nzij_current(83,2)=27;
  nzij_current(84,1)=23; nzij_current(84,2)=27;
  nzij_current(85,1)=33; nzij_current(85,2)=28;
  nzij_current(86,1)=6; nzij_current(86,2)=29;
  nzij_current(87,1)=9; nzij_current(87,2)=29;
  nzij_current(88,1)=7; nzij_current(88,2)=30;
  nzij_current(89,1)=9; nzij_current(89,2)=30;
  nzij_current(90,1)=8; nzij_current(90,2)=31;
  nzij_current(91,1)=9; nzij_current(91,2)=31;
  nzij_current(92,1)=20; nzij_current(92,2)=32;
  nzij_current(93,1)=19; nzij_current(93,2)=33;
  nzij_current(94,1)=20; nzij_current(94,2)=33;
  nzij_current(95,1)=19; nzij_current(95,2)=34;
  nzij_current(96,1)=20; nzij_current(96,2)=34;
  nzij_current(97,1)=21; nzij_current(97,2)=34;
  nzij_current(98,1)=21; nzij_current(98,2)=35;
  nzij_current(99,1)=22; nzij_current(99,2)=35;
  nzij_current(100,1)=21; nzij_current(100,2)=36;
  nzij_current(101,1)=23; nzij_current(101,2)=36;
  nzij_fwrd = zeros(10, 2, 'int32');
  nzij_fwrd(1,1)=6; nzij_fwrd(1,2)=11;
  nzij_fwrd(2,1)=7; nzij_fwrd(2,2)=12;
  nzij_fwrd(3,1)=3; nzij_fwrd(3,2)=13;
  nzij_fwrd(4,1)=28; nzij_fwrd(4,2)=13;
  nzij_fwrd(5,1)=4; nzij_fwrd(5,2)=14;
  nzij_fwrd(6,1)=28; nzij_fwrd(6,2)=14;
  nzij_fwrd(7,1)=9; nzij_fwrd(7,2)=20;
  nzij_fwrd(8,1)=8; nzij_fwrd(8,2)=27;
  nzij_fwrd(9,1)=9; nzij_fwrd(9,2)=27;
  nzij_fwrd(10,1)=8; nzij_fwrd(10,2)=33;
end
